const jwt = require('koa-jwt');
const Router = require('koa-router');
const router = new Router({prefix:'/collectArticleLists'});
const {findByUserId,collectArticle,uncollectArticle} = require('../controllers/collectArticleLists')
const {secret} = require('../config/index');
const auth = jwt({ secret });


router.get('/',auth,findByUserId);
router.post('/collect/:id',auth,collectArticle);
router.delete('/uncollect/:id',auth,uncollectArticle);
module.exports = router;